from selenium.webdriver.remote.webdriver import WebDriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import time

from selenium.webdriver.common.action_chains import ActionChains
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys


wd = webdriver.Chrome(service=Service(f".\chromedriver_win136.exe"))
wd.get("https://www.selenium.dev/selenium/web/web-form.html")
color_picker = wd.find_element(By.NAME, "my-colors")
color_picker.send_keys("#ffffff")
time.sleep(3)

color_picker.send_keys("#b13232")
time.sleep(3)

color_picker.send_keys("#5be24f")
time.sleep(3)


# ac=ActionChains(wd)
# ac.move_to_element(color_picker).click().send_keys(Keys.TAB).send_keys(
#     Keys.TAB
# ).click_and_hold().move_by_offset(20, 0).release().perform()
# time.sleep(5)
